<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>直播文字</title>
  <style>
    body {
      color: #fff;
    }
    h1 {
      color: red;
      font-size: 40px;
      margin: 0 auto;
      background: #fff;
      text-align: center;
    }
    button {
      width: 300px;
      height: 200px;
      font-size: 40px;
    }
  </style>
</head>
<body>
  <h1>网不行</h1>
  <button>1</button>

  <script>
    const btn = document.querySelector('button')
    btn.addEventListener('click', function () {
      btn.innerHTML = +btn.innerHTML + 1
    })
  </script>
</body>
</html>
